package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Author lhj
 * @Date 2024/5/18 15:38
 */
@FeignClient(value = "gulimall-order", contextId = "OrderFeignService")
public interface OrderFeignService {

    /**
     * 根据orderSn查询订单
     * @param orderSn 订单流水
     * @return orderEntity
     * /order/order/getOrder/orderSn
     */
    @GetMapping("/order/order/getOrder/{orderSn}")
    R getOrderByOrderSn(@PathVariable(value = "orderSn") String orderSn);
    
}
